package com.ipartek.pruebas.bbddaccessP10;

import java.sql.*;

//MySQLconcrete DAO Factory implementation

public class MySQLDAOFactoryP10 extends DAOFactoryP10 {
public static final String DRIVER=
 "COM.MySQL.core.RmiJdbcDriver";
public static final String DBURL=
 "jdbc:MySQL:rmi://localhost:1099/CoreJ2EEDB";
// method to create MySQL connections

public static Connection createConnection() {
 // Use DRIVER and DBURL to create a connection
 // Recommend connection pool implementation/usage
}
public AlumnoDAOP10 getCustomerDAO() {
 // MySQLCustomerDAO implements CustomerDAO
 return new MySQLustomerDAO();
}
public CursoDAOP10 getAccountDAO() {
 // MySQLAccountDAO implements AccountDAO
 return new MySQLCursoDAOP10();
}

// ...
}